package com.lcj.aoch.rule.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Schema(description = "根据ID查询分账规则的表单")
public class SearchProfitsharingRuleByIdForm {
  @NotNull(message = "ruleId不为空")
  @Min(value = 1L, message = "ruleId不能小于1")
  @Schema(description = "规则ID")
  private Long ruleId;
  
  public void setRuleId(Long ruleId) {
    this.ruleId = ruleId;
  }
  
  public SearchProfitsharingRuleByIdForm(Long ruleId) {
    this.ruleId = ruleId;
  }
  
  public SearchProfitsharingRuleByIdForm() {}
  
  public String toString() {
    return "SearchProfitsharingRuleByIdForm(ruleId=" + getRuleId() + ")";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this)
      return true;
    if (!(o instanceof SearchProfitsharingRuleByIdForm))
      return false;
    SearchProfitsharingRuleByIdForm other = (SearchProfitsharingRuleByIdForm)o;
    if (!other.canEqual(this))
      return false;
    Object this$ruleId = getRuleId(), other$ruleId = other.getRuleId();
    return !((this$ruleId == null) ? (other$ruleId != null) : !this$ruleId.equals(other$ruleId));
  }
  
  protected boolean canEqual(Object other) {
    return other instanceof SearchProfitsharingRuleByIdForm;
  }
  
  public int hashCode() {
    int PRIME = 59;
    int result = 1;
    Object $ruleId = getRuleId();
    return result * 59 + (($ruleId == null) ? 43 : $ruleId.hashCode());
  }
  
  public Long getRuleId() {
    return this.ruleId;
  }
}
